<?php 
$this->widget ( 'zii.widgets.grid.CGridView', array (
		'id' => 'history-grid',
		'dataProvider' =>$dataProvider,
		'filter' => $model,
		'template' => "{items}{pager}{summary}",
		'afterAjaxUpdate' => "afterUpdate",
		'selectableRows' => 1,
		'columns' => array (
				/*array ('headerHtmlOptions' => array (
								'width' => '40px' 
						),'htmlOptions' => array (
								'width' => '40px' 
						),'class' => 'CCheckBoxColumn','checkBoxHtmlOptions' => array (
								'name' => 'id[]','value' => '$data->id' 
						)
				),*/
				/*array ('headerHtmlOptions' => array (
						'width' => '40px'
				),'htmlOptions' => array (
						'width' => '40px'
				),
						'name'=>'id',
						'value' => '$data->id'
				),*/
				array ('headerHtmlOptions' => array (
						'width' => '40px'
				),'htmlOptions' => array (
						'width' => '40px'
				),
				  'name'=>'areaname',
				  'value' => '$data->areaname',
				  // 'filter' => 'CHtml::activeTextField($data, "areaname")',
				),
				array ('headerHtmlOptions' => array (
						'width' => '40px'
				),'htmlOptions' => array (
						'width' => '40px'
				),
						'value' => '$data->postcode'
				),
				
				array(
						'class'=> 'CButtonColumn',
						'header' =>'操作',
						// 'view'=>'aa',
						'template'=>"{view} {update} {delete}",
				),
		)
	)
);
?>